import type { MenuSettingTypes } from "./types/menuSettingTypes";

 const useMenuSetting= defineStore('menuSetting', {
  state: ():MenuSettingTypes => ({
    isCollapse:false,
    isRefresh: true,
  }),

  actions: {
    changeCollapse(payload:boolean) {
      this.isCollapse = payload;
    },
    changeRefresh(payload:boolean) {
      console.log('changeRefresh', payload)
      this.isRefresh = payload;
    }
  }
  })

export default useMenuSetting;
